import React from "react";
import Login from 'src/render/account/components/login';

import './style.scss';

export default ({type = 'login'}: {type?: string}) => {

  const map = {
    login: <Login />,
    signup: <span>signup</span>,
    forget: <span>forget</span>
  };
  //@ts-ignore
  const switchComponent = map[type];
  return (
    <div className="market-account-wrap">
      <div className="market-account-container">
        <div className="market-account-form">
          { switchComponent ? switchComponent : null }
        </div>
      </div>
    </div>
  )
};